home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ IE Outlook Express 3.xpl < prev    next >
Text File  |  1999-07-17  |  2KB  |  68 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 3.1"
  2. "TYPE"="1"
  3. "COUNT"="1"
  4. "UIPATH"="Internet\Outlook Express"
  5. "NAME"="Window Title"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Title"
  8. "DESCRIPTION 1"="You can change the title of the Outlook Express window here."
  9. "DESCRIPTION 2"="To have to original title again, clear the field and press "Apply"."
  10. "AUTHOR"="Xteq Systems"
  11. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  12. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  13. "COMMENT 2"="Version 1.4"
  14. "COMMENT 2"="Thanks to Maxwell <maxwello@hotpop.com> (again!) for his tips about OE5."
  15.  
  16.  
  17. sValPath=""
  18. sP1="HKCU\Software\Microsoft\Outlook Express\"
  19. sP2="HKCU\Identities\Last User ID"
  20. sValue="WindowTitle"
  21.  
  22.  
  23. Sub Plugin_Initialize 
  24.    'OK, let's have a look if we are running IE5...
  25.     s=RegReadValue(sP2)
  26.     if IsEmpty(s)=false then
  27.        'OK - we have a value - check if we can find OE
  28.        sValPath="HKCU\Identities\" & s & "\Software\Microsoft\Outlook Express\5.0\"
  29.        If RegPathExists(sValPath) then
  30.           'OE5 !
  31.           sValPath=sValPath & sValue
  32.        else
  33.           sValPath=sP1 & sValue
  34.        end if 
  35.     else
  36.        sValPath=sP1 & sValue
  37.     end if
  38.      
  39.  
  40.     s=RegReadValue(sValPath)
  41.     SetUIElement 1,s
  42. End Sub
  43.  
  44.  
  45. Sub Plugin_CheckData(ElementIndex)
  46. End Sub
  47.  
  48.  
  49.  
  50. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  51.  s=GetUIElement(1)
  52.  if len(s)=0 then
  53.     'If values exists, delete it
  54.     s=RegReadValue(sValPath)
  55.     if IsEmpty(s)=false then Call RegDeleteValue(sValPath)
  56.  else
  57.     Call RegWriteValue(sValPath,s,1)
  58.  end if
  59.  
  60. End Sub
  61.  
  62.  
  63. Sub Plugin_Terminate 
  64. End Sub
  65.  
  66.  
  67.  
  68.